<?php

namespace Api\Controller;

use Common\Logic\MessageLogic;

class MessageController extends BaseController
{

    public function  __construct()
    {
        parent::__construct();
        // $this->user_id = I('user_id');
    }
    /**
     * 读取系统消息
     * @param page
     * 
     */ 
    public function read()
    {
        try{
            $res = MessageLogic::read($this->user_id);
        }catch(\Exception $e)
        {
            return $this->returnInfo(-1,$e->getMessage());
        }
        header("content-type:application/json");
        echo json_encode( $res, JSON_UNESCAPED_UNICODE );
    }
}
